package com.platform.modules.cpt.service.impl;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.platform.modules.cpt.dao.CptAcceptanceSuperviseReportDao;
import com.platform.modules.cpt.entity.CptAcceptanceConclusionEntity;
import com.platform.modules.cpt.entity.CptAcceptanceSuperviseReportEntity;
import com.platform.modules.cpt.service.CptAcceptanceSuperviseReportService;

@Service
public class CptAcceptanceSuperviseReportServiceImpl extends ServiceImpl<CptAcceptanceSuperviseReportDao, CptAcceptanceSuperviseReportEntity> implements CptAcceptanceSuperviseReportService {

    private static final Logger logger = LoggerFactory.getLogger(CptAcceptanceSuperviseReportServiceImpl.class);

	@Override
	public CptAcceptanceSuperviseReportEntity queryOne(Map<String, Object> params) {
        params.put("sidx", "CREATE_TIME");
        params.put("asc", false);
        List<CptAcceptanceSuperviseReportEntity> list = baseMapper.selectList(params);
        if(list==null || list.isEmpty()){
            return null;
        }else{
            return list.get(0);
        }
	}

    
}
